Description: Subset of example index explicitly using the names of specific animals
Definition: ['Dog','Iguana']
Location: 64,136
Nodesize: 48,20
Chance A
Title: A
Description: An example variable defined as an array indexed by i1
Definition: Table(I1)(
3M,5M,12M,14M,17M)
Location: 288,40
Nodesize: 48,20
Defnstate: 1,344,192,407,173,0,MIDM
Chance B
Title: b: i1<>i2
Description: Boolean result for an index. This variable should evaluate to an array of 1's and 0's indexed by the original index, where a 1 indicates an element we wish to extract in our subset index.~
~
This variable is defined as the "not equals" part of another index that is explicitly defined as a subset of the original index.
Definition: Not Sum(i1=i2, i2 )
Location: 176,96
Nodesize: 48,20
Valuestate: 1,546,145,416,303,0,MIDM
Reformval: [ ,I1 ]
Chance B_accum_b
Title: b*Accum b
Description: The boolean array B multiplied against the accumulated result of B yielding the positions of the index that we want to extract.
Definition: B*Cumulate(B)
Location: 176,152
Nodesize: 48,20
Valuestate: 1,94,525,416,303,0,MIDM
Chance Sequence_b
Title: Sequence b
Description: Temporary index sequencing numbers from 1 to the expected size of the new index
Definition: Sequence(1,Sum(B,I1))
Location: 288,152
Nodesize: 48,20
Chance Extract_i1
Title: Extract i1
Description: Extraction of index values for the new array
Definition: Subindex( B_accum_b, Sequence_b, i1 )
Location: 288,208
Nodesize: 48,20
Valuestate: 1,170,565,297,198,0,MIDM
Index Slice_i1
Title: Slice i1
Description: The extracted index, defined itself as an Index variable.
Description: This variable shows how you can multiply an array against a boolean test, "zeroing" out irrelevant values. This keeps the variable indexed by the original index.
Definition: A*B
Location: 400,96
Nodesize: 48,20
Valuestate: 1,189,560,416,303,0,MIDM
Reformval: [I2 ,I1 ]
Chance Subset_a
Title: Subset A
Description: This "slices" out a subset of A for the elements of an indexed specified in Slice i1.